import type { QueryDTO } from '@/assets/js/utils/entity/QueryDTO'
import type { VOrgManagement } from '@/assets/js/vo/organization/orgManagement/VOrgManagement'
import { instance } from '@/configs/request/index'

export const queryOrgList = (params: QueryDTO) => {
    return instance.post('/lms-app-service/organization/query', params)
}

export const saveOrg = (params: VOrgManagement) => {
    return instance.post('/lms-app-service/organization/save', params)
}

export const getOrgById = (id: string) => {
    return instance.get('/lms-app-service/organization/get/' + id)
}

export const removeOrg = (ids: string[]) => {
    return instance.post('/lms-app-service/organization/delete', ids)
}